﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShiQuan.Redis
{
    /// <summary>
    /// 状态命令
    /// </summary>
    public class RedisCommand
    {
        /// <summary>
        /// 获取一个key的值
        /// </summary>
        public const string GET = "GET";
        /// <summary>
        //Redis信息
        /// </summary>
        public const string INFO = "INFO";
        /// <summary>
        /// 添加一个值
        /// </summary>
        public const string SET = "SET";
        /// <summary>
        /// 设置过期时间
        /// </summary>
        public const string EXPIRE = "EXPIRE";
        /// <summary>
        /// 标记一个事务块开始
        /// </summary>
        public const string MULTI = "MULTI";
        /// <summary>
        /// 执行所有 MULTI 之后发的命令
        /// </summary>
        public const string EXEC = "EXEC";
        /// <summary>
        /// 取消事务，放弃执行事务块内的所有命令
        /// </summary>
        public const string DISCARD = "DISCARD";
        /// <summary>
        /// 退出
        /// </summary>
        public const string QUIT = "QUIT"; 
    }
}
